<?php
/**
 * CategoryCount-Model
 *
 * PHP versions 4 and 5
 *
 * TutoriumBase (http://tutoriumbase.my-reality.de)
 * Copyright 2012, Miguel Gonzalez (http://my-reality.de)
 *
 *
 * @copyright     Copyright 2012, Miguel Gonzalez (http://my-reality.de)
 * @link          http://tutoriumbase.my-reality.de TutoriumBase
 * @since         TutoriumBase v 0.1
 */

class CategoryCount extends AppModel {
    
    var $name = 'CategoryCount';
    
    // Relations
    var $belongsTo = array(
        'Tutorial' => array(
            'className'  => 'Tutorial',
            'foreignKey' => 'tutorial_id'
        ),
        'Category' => array(
            'className'  => 'Category',
            'foreignKey' => 'category_id'
        )
    );
}
?>
